import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'
import { store } from '@/libs/store/index.js'
import { initRequest } from '@/libs/common/request.js'
// vue2语法
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
Vue.use(initRequest, app)
Vue.use(store)
Vue.use(uviewPlus)
app.$mount()
// #endif

// vue3语法
// #ifdef VUE3
import { createSSRApp } from 'vue'

export function createApp() {
    const app = createSSRApp(App)
    initRequest(app)
    app.use(store).use(uviewPlus)
    return {
        app
    }
}
// #endif
